package tech.aistar.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class User {
    private Long usId;

    private String usName;

    private String usPassword;

    private String usAvatar;

    private String usNickname;

    private Integer usSex;

    private String usPhone;

    @DateTimeFormat(pattern = "yyyy-MM-dd") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
    private Date usBirthday;

    private String usEducation;

    private String usSchool;

    private String usAdress;

    public Long getUsId() {
        return usId;
    }

    public void setUsId(Long usId) {
        this.usId = usId;
    }

    public String getUsName() {
        return usName;
    }

    public void setUsName(String usName) {
        this.usName = usName;
    }

    public String getUsPassword() {
        return usPassword;
    }

    public void setUsPassword(String usPassword) {
        this.usPassword = usPassword;
    }

    public String getUsAvatar() {
        return usAvatar;
    }

    public void setUsAvatar(String usAvatar) {
        this.usAvatar = usAvatar;
    }

    public String getUsNickname() {
        return usNickname;
    }

    public void setUsNickname(String usNickname) {
        this.usNickname = usNickname;
    }

    public Integer getUsSex() {
        return usSex;
    }

    public void setUsSex(Integer usSex) {
        this.usSex = usSex;
    }

    public String getUsPhone() {
        return usPhone;
    }

    public void setUsPhone(String usPhone) {
        this.usPhone = usPhone;
    }

    public Date getUsBirthday() {
        return usBirthday;
    }

    public void setUsBirthday(Date usBirthday) {
        this.usBirthday = usBirthday;
    }

    public String getUsEducation() {
        return usEducation;
    }

    public void setUsEducation(String usEducation) {
        this.usEducation = usEducation;
    }

    public String getUsSchool() {
        return usSchool;
    }

    public void setUsSchool(String usSchool) {
        this.usSchool = usSchool;
    }

    public String getUsAdress() {
        return usAdress;
    }

    public void setUsAdress(String usAdress) {
        this.usAdress = usAdress;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("User{");
        sb.append("usId=").append(usId);
        sb.append(", usName='").append(usName).append('\'');
        sb.append(", usPassword='").append(usPassword).append('\'');
        sb.append(", usAvatar='").append(usAvatar).append('\'');
        sb.append(", usNickname='").append(usNickname).append('\'');
        sb.append(", usSex=").append(usSex);
        sb.append(", usPhone='").append(usPhone).append('\'');
        sb.append(", usBirthday=").append(usBirthday);
        sb.append(", usEducation='").append(usEducation).append('\'');
        sb.append(", usSchool='").append(usSchool).append('\'');
        sb.append(", usAdress='").append(usAdress).append('\'');
        sb.append('}');
        return sb.toString();
    }
}